From: Florian Müllner Date: Mon, 28 Jan 2019 00:39:54 +0000 (+0100) Subject: lint: Enforce arrow notation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~45 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5f77cdb0b96dc0c69ff05e53c1d5d956c6972b6f;p=gnome-shell.git lint: Enforce arrow notation We replaced all Lang.bind() calls with arrow functions or the standardized Function.prototype.bind(), at least for the former eslint has some options to ensure that the old custom doesn't sneak back in. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609 --- diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json index f2524a6df..c5bed8690 100644 --- a/lint/eslintrc-shell.json +++ b/lint/eslintrc-shell.json @@ -3,7 +3,8 @@ "object-curly-spacing": [ "error", "always" - ] + ], + "prefer-arrow-callback": "error" }, "overrides": [